const ws = require('ws');
const socketServer = ws.Server;
class webSocket {
    constructor(port) {
        this.port = port;
        this.wss = new socketServer({
            port: port
        });
    }
    wsConnection (cb) {
        this.wss.on('connection', (ws) => {
            cb();
        })
    }
}